package myjava.astratto;

public class Root {

   public static void main(String[] args) {

      Car c1 = new Fiat();
      System.out.println("speed: " + c1.getSpeed());
      Car c2 = new Ferrari();
      System.out.println("speed: " + c2.getSpeed());

      // this won't work cuz Car is abstract
      // Car c0 = new Car();
   }
}
